package com.codechen.scaffold.news.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.codechen.scaffold.admin.domain.entity.SysUser;
import com.codechen.scaffold.admin.domain.request.SysUserQueryRequest;
import com.codechen.scaffold.admin.domain.vo.SysUserVo;
import com.codechen.scaffold.news.domain.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codechen.scaffold.news.domain.request.NewsQueryRequest;
import com.codechen.scaffold.news.domain.request.NewsSaveRequest;
import com.codechen.scaffold.news.domain.vo.NewsBaseVO;
import com.codechen.scaffold.news.domain.vo.NewsVO;

import java.util.List;
import java.util.Map;

public interface INewsService extends IService<News> {

	void saveNews(NewsSaveRequest request, String status);

	void removeNews(Long newsId);

	IPage<NewsBaseVO> queryList(Page<NewsBaseVO> newsPage, NewsQueryRequest newsQueryRequest);

	NewsVO findNewsById(Long id);

	List<NewsBaseVO> listFeatures();

}